"""
巡检巡查解析结果封装
"""


class XjxcParseResult:

    def __init__(self,
                 project_name: str = None,  # 工程名称
                 inspect_person: str = None,  # 巡查人员
                 task_name: str = None,  # 任务名称
                 inspect_date: str = None,  # 巡查日期
                 images: str = None  # 巡查记录表图片
                 ):
        self.project_name = project_name  # 工程名称
        self.inspect_person = inspect_person  # 巡查人员
        self.task_name = task_name  # 任务名称
        self.inspect_date = inspect_date  # 巡查日期
        self.images = images  # 巡查记录表图片

    def to_dict(self):
        return {
            "project_name": self.project_name,
            "inspect_person": self.inspect_person,
            "task_name": self.task_name,
            "inspect_date": self.inspect_date,
            "images": self.images
        }
